import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
// import Test from '../views/Test.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home
  },
  {
    path: '/about',
    name: 'about',
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  },
  {
    path: '/test',
    name: 'test',
    component: () => import(/* webpackChunkName: "Test" */ '../views/Test.vue')
  },
  {
    path: '/animation',
    name: 'animation',
    component: () => import(/* webpackChunkName: "animation" */ '../views/Animation.vue')
  },
  {
    path: '/load-more',
    name: 'loadMore',
    component: () => import(/* webpackChunkName: "animation" */ '../views/loadMore/loadMore.vue')
  },
  {
    path: '/emoji',
    name: 'Emoji',
    component: () => import(/* webpackChunkName: "animation" */ '../views/emoji.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
